import Layout from '@/views/layout/Layout'

const miniprogram = {
  path: '/miniprogram',
  component: Layout,
  name: 'miniprogram',
  meta: { title: '小程序管理', roles: ['1'], icon: 'guanli' },
  children: [
    {
      path: '',
      component: () => import('@/views/miniprogram/index'),
      name: 'miniprogram.user.list',
      meta: {title: '小程序角色管理', icon: 'table', fullPath: '/miniprogram/user'},
      children: [
        {
          path: '',
          name: 'miniprogram.user.list',
          component: () => import('@/views/components/list_card'),
          meta: {title: '小程序角色列表', title1: '列表', icon: 'guanli'}
        },
        {
          path: 'create',
          name: 'miniprogram.user.create',
          hidden: true,
          component: () => import('@/views/miniprogram/components/create_card'),
          meta: {title1: '创建', icon: 'tree'}
        },
        {
          path: 'edit',
          name: 'miniprogram.user.edit',
          hidden: true,
          component: () => import('@/views/miniprogram/components/edit_card'),
          meta: {title1: '编辑', icon: 'tree'}
        },
      ]
    },
    {
      path: 'framework',
      name: 'company_manage.framework',
      component: () => import('@/views/company_manage/framework/index'),
      meta: {title: '组织架构管理', icon: 'subsystem', fullPath: '/company_manage/framework'}
    },
    {
      path: 'framework/edit',
      name: 'company_manage.framework.edit',
      hidden: true,
      component: () => import('@/views/company_manage/framework/edit'),
      meta: {title: '组织架构管理修改', icon: 'subsystem', fullPath: '/company_manage/framework/edit'}
    },

  ]
}

export default miniprogram
